package com.teamall.web.sjtj.db.dao.mapper;

import com.teamall.web.sjtj.db.arg.CodeVisitedTownRankArg;
import com.teamall.web.sjtj.db.po.CodeVisitedTownRankPO;

import java.math.*;
import java.util.*;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

public interface ICodeVisitedTownRankMapper {
    
    List<Integer> countByArg(CodeVisitedTownRankArg arg);

    List<CodeVisitedTownRankPO> selectByArg(CodeVisitedTownRankArg arg);

    CodeVisitedTownRankPO selectByPrimaryKey(String id);

    List<CodeVisitedTownRankPO> selectByArgAndPage(CodeVisitedTownRankArg arg, RowBounds rowBound);

    int insert(CodeVisitedTownRankPO record);

    int insertSelective(CodeVisitedTownRankPO record);

    int insertBatch(@Param("list") List<CodeVisitedTownRankPO> records);

    int updateByArgSelective(@Param("record") CodeVisitedTownRankPO record,
            @Param("arg") CodeVisitedTownRankArg arg);

    int updateByArg(@Param("record") CodeVisitedTownRankPO record,
            @Param("arg") CodeVisitedTownRankArg arg);

    int updateByPrimaryKeySelective(CodeVisitedTownRankPO record);

    int updateByPrimaryKey(CodeVisitedTownRankPO record);
    
    int deleteByArg(CodeVisitedTownRankArg arg);
    
    int deleteByPrimaryKey(String id);
    
}